package a.j;

import a.c.d;
import a.c.e;
import a.c.m;
import a.c.w;
import a.d.t;
import a.j.a.j;

import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.util.Iterator;

public class lf
  extends jf
{
  public static final int I = 1;
  public static final int J = 2;
  public static final int K = 8;
  public static final int L = 16;
  public static final int M = 32;
  public static final int N = 64;
  private static final int O = 9;
  private static final int P = 48;
  private boolean Q;
  private boolean R;
  public static boolean S;
  
  public lf(df paramdf)
  {
    super(paramdf);
  }
  
  public lf() {}
  
  public boolean v()
  {
    return this.Q;
  }
  
  public void g(boolean paramBoolean)
  {
    this.Q = paramBoolean;
  }
  
  public boolean w()
  {
    return this.R;
  }
  
  public void h(boolean paramBoolean)
  {
    this.R = paramBoolean;
  }
  
  protected void selectionBoxAction(Rectangle paramRectangle, boolean paramBoolean)
  {
    g localg = k();
    localg.z();
    try
    {
      a(localg, paramRectangle, paramBoolean);
    }
    finally
    {
      localg.A();
    }
    localg.gb();
  }
  
  private void a(g paramg, Rectangle paramRectangle, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (v())
      {
        a(paramg, d(a(paramg)), paramRectangle, paramBoolean);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2) {
      if (!paramBoolean)
      {
        b(paramg);
        a(paramRectangle);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2)
    {
      if (paramg.S().e())
      {
        if (bool2) {
          break label111;
        }
        c(paramRectangle);
      }
    }
    else if (!bool1) {
      return;
    }
    label111:
    a(paramRectangle);
  }
  
  void a(Rectangle2D paramRectangle2D)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    g localg = k();
    Object localObject1 = localg.v();
    Object localObject2;
    do
    {
      if (!((w)localObject1).e()) {
        break;
      }
      localObject2 = ((w)localObject1).d();
      if (!bool2)
      {
        if (a((e)localObject2, paramRectangle2D)) {
          a(localg, (e)localObject2, true);
        }
        ((w)localObject1).f();
      }
    } while (!bool1);
    localObject1 = localg.L();
    do
    {
      if (!((fb)localObject1).e()) {
        break;
      }
      localObject2 = ((fb)localObject1).a();
      if (!bool2)
      {
        if (a((eb)localObject2, paramRectangle2D)) {
          a(localg, (eb)localObject2, true);
        }
        ((fb)localObject1).f();
      }
    } while (!bool1);
  }
  
  void c(Rectangle2D paramRectangle2D)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    g localg = k();
    m localm = localg.w();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      if (!bool2)
      {
        if (a(locald, paramRectangle2D)) {
          a(localg, locald, true);
        }
        localm.f();
      }
    } while (!bool1);
  }
  
  protected boolean a(e parame, Rectangle2D paramRectangle2D)
  {
    boolean bool = ld.E;
    g localg = k();
    ld localld = k().w(parame);
    j localj = j.a(localg);
    if ((bool) || (localj != null))
    {
      if (bool) {
        break label96;
      }
      if (localj.m(parame)) {
        return paramRectangle2D.contains(localld.a(), localld.b(), localld.c(), localld.d());
      }
    }
    label96:
    return localld.c(paramRectangle2D.getX(), paramRectangle2D.getY(), paramRectangle2D.getWidth(), paramRectangle2D.getHeight());
  }
  
  protected boolean a(d paramd, Rectangle2D paramRectangle2D)
  {
    tb localtb = k().t(paramd);
    return localtb.a(paramRectangle2D, false);
  }
  
  protected boolean a(eb parameb, Rectangle2D paramRectangle2D)
  {
    return parameb.a(paramRectangle2D.getX(), paramRectangle2D.getY(), paramRectangle2D.getWidth(), paramRectangle2D.getHeight());
  }
  
  protected boolean a(hg paramhg, Rectangle2D paramRectangle2D)
  {
    return a(paramhg.c(), paramRectangle2D);
  }
  
  protected boolean a(jd paramjd, Rectangle2D paramRectangle2D)
  {
    return a(paramjd.o(), paramRectangle2D);
  }
  
  private boolean a(t paramt, Rectangle2D paramRectangle2D)
  {
    boolean bool = ld.E;
    double d1 = paramt.d() + paramt.b() * 0.5D;
    double d2 = paramt.e() + paramt.c() * 0.5D;
    if (((bool) || (paramRectangle2D.getX() <= d1)) && ((bool) || (d1 <= paramRectangle2D.getX() + paramRectangle2D.getWidth())) && ((bool) || (paramRectangle2D.getY() <= d2))) {
      if (bool) {}
    }
    return d2 <= paramRectangle2D.getY() + paramRectangle2D.getHeight();
  }
  
  protected int d(int paramInt)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (w())
      {
        i = paramInt;
        if (!bool2) {
          if (i == 0)
          {
            i = 9;
            if (bool2) {
              break label61;
            }
            if (!bool1) {
              break label60;
            }
          }
        }
        if (!bool2) {
          if ((i & 0x9) == i) {
            i = 9;
          }
        }
        label60:
        label61:
        return i;
      }
    }
    int i = paramInt;
    if (!bool2) {
      if (i == 0) {
        i = 9;
      }
    }
    if (!bool2) {
      if ((i & 0x2) == 2)
      {
        i = 2;
        if (bool2) {
          break label132;
        }
        if (!bool1) {
          break label128;
        }
      }
    }
    if (!bool2) {
      if ((i & 0x9) != 0)
      {
        i = 9;
        if (bool2) {
          break label132;
        }
        if (!bool1) {
          break label128;
        }
      }
    }
    i = e(i);
    label128:
    label132:
    if (!bool2) {
      if ((i & 0x30) != 0) {
        i = 48;
      }
    }
    return i;
  }
  
  private static int e(int paramInt)
  {
    return paramInt & -paramInt;
  }
  
  protected int a(g paramg)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    int i = 0;
    Object localObject;
    do
    {
      localObject = paramg.v();
      while (!bool1)
      {
        if (!((w)localObject).e()) {
          break;
        }
        i |= a(paramg, ((w)localObject).d());
        ((w)localObject).f();
      }
    } while (bool2);
    do
    {
      localObject = paramg.w();
      while (!bool1)
      {
        if (!((m)localObject).e()) {
          break;
        }
        if (!bool2)
        {
          if (bool1) {
            break label111;
          }
          i |= a(paramg, ((m)localObject).a());
          ((m)localObject).f();
        }
      }
    } while (bool2);
    label111:
    return i;
  }
  
  protected int a(g paramg, d paramd)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    int i = 0;
    if ((bool2) || (b(paramg, paramd))) {
      i |= 0x2;
    }
    tb localtb = paramg.t(paramd);
    if (!bool2) {
      if ((i & 0x20) != 32)
      {
        if (bool2) {
          break label130;
        }
        if (localtb.V() > 0)
        {
          int j = 0;
          int k = localtb.V();
          do
          {
            if (j >= k) {
              break;
            }
            if (bool2) {
              break label140;
            }
            if (bool1) {
              break label138;
            }
            if (a(paramg, localtb.d(j)))
            {
              i |= 0x20;
              if (bool2) {
                break label130;
              }
              if (!bool1) {
                break;
              }
            }
            j++;
          } while (!bool1);
        }
      }
    }
    label130:
    label138:
    if ((bool2) || ((i & 0x8) != 8)) {
      label140:
      if ((bool2) || (localtb.n() > 0))
      {
        fb localfb = localtb.o();
        do
        {
          if (!localfb.e()) {
            break;
          }
          if (bool1) {
            break label221;
          }
          if (a(paramg, localfb.a()))
          {
            i |= 0x8;
            if (!bool2) {
              if (!bool1) {
                break;
              }
            }
          }
          else
          {
            localfb.f();
          }
        } while (!bool1);
      }
    }
    label221:
    return i;
  }
  
  protected int a(g paramg, e parame)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    int i = 0;
    if ((bool2) || (b(paramg, parame))) {
      i |= 0x1;
    }
    ld localld = paramg.w(parame);
    if (!bool2) {
      if ((i & 0x10) != 16)
      {
        if (bool2) {
          break label130;
        }
        if (localld.x() > 0)
        {
          int j = 0;
          int k = localld.x();
          do
          {
            if (j >= k) {
              break;
            }
            if (bool2) {
              break label140;
            }
            if (bool1) {
              break label138;
            }
            if (a(paramg, localld.b(j)))
            {
              i |= 0x10;
              if (bool2) {
                break label130;
              }
              if (!bool1) {
                break;
              }
            }
            j++;
          } while (!bool1);
        }
      }
    }
    label130:
    label138:
    if ((bool2) || ((i & 0x40) != 64)) {
      label140:
      if ((bool2) || (localld.y() > 0))
      {
        Iterator localIterator = localld.z();
        while (localIterator.hasNext()) {
          if (a(paramg, (jd)localIterator.next()))
          {
            if ((bool2) || (bool1)) {
              break label210;
            }
            i |= 0x40;
          }
        }
      }
    }
    label210:
    return i;
  }
  
  protected void a(g paramg, int paramInt, Rectangle paramRectangle, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    Object localObject = paramg.v();
    do
    {
      while (!bool1)
      {
        if (!((w)localObject).e()) {
          break;
        }
        a(paramg, ((w)localObject).d(), paramInt, paramRectangle, paramBoolean);
        ((w)localObject).f();
      }
    } while (bool2);
    localObject = paramg.w();
    do
    {
      while (!bool1)
      {
        if (!((m)localObject).e()) {
          break;
        }
        a(paramg, ((m)localObject).a(), paramInt, paramRectangle, paramBoolean);
        ((m)localObject).f();
      }
    } while (bool2);
  }
  
  protected void a(g paramg, d paramd, int paramInt, Rectangle paramRectangle, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {}
    int i = !paramBoolean ? 1 : 0;
    if (!bool2) {}
    int j = (paramInt & 0x2) == 2 ? 1 : 0;
    if (!bool2) {}
    int k = (paramInt & 0x20) == 32 ? 1 : 0;
    if (!bool2) {}
    int m = (paramInt & 0x8) == 8 ? 1 : 0;
    if ((bool2) || (j != 0))
    {
      if (!bool2) {
        if (a(paramd, paramRectangle)) {
          a(paramg, paramd, true);
        }
      }
      if ((bool2) || ((bool1) && (i != 0))) {
        a(paramg, paramd, false);
      }
    }
    tb localtb = paramg.t(paramd);
    if (((bool2) || (k != 0)) && ((bool2) || (localtb.V() > 0)))
    {
      int n = 0;
      int i1 = localtb.V();
      do
      {
        if (n >= i1) {
          break;
        }
        ig localig = localtb.d(n);
        if (bool1) {
          break label265;
        }
        if (a(localig, paramRectangle))
        {
          a(paramg, localig, true);
          if (bool2) {
            continue;
          }
          if (!bool1) {}
        }
        else
        {
          if (bool2) {
            continue;
          }
          if (i != 0) {
            a(paramg, localig, false);
          }
        }
        n++;
      } while (!bool1);
    }
    if ((!bool2) && (m != 0)) {
      label265:
      if ((bool2) || (localtb.n() > 0))
      {
        fb localfb = localtb.o();
        label359:
        do
        {
          if (!localfb.e()) {
            break;
          }
          eb localeb = localfb.a();
          if (!bool2) {
            if (a(localeb, paramRectangle))
            {
              a(paramg, localeb, true);
              if (bool2) {
                continue;
              }
              if (!bool1) {
                break label359;
              }
            }
          }
          if (!bool2)
          {
            if (i != 0) {
              a(paramg, localeb, false);
            }
            localfb.f();
          }
        } while (!bool1);
      }
    }
  }
  
  protected void a(g paramg, e parame, int paramInt, Rectangle paramRectangle, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {}
    int i = !paramBoolean ? 1 : 0;
    if (!bool2) {}
    int j = (paramInt & 0x1) == 1 ? 1 : 0;
    if (!bool2) {}
    int k = (paramInt & 0x10) == 16 ? 1 : 0;
    if (!bool2) {}
    int m = (paramInt & 0x40) == 64 ? 1 : 0;
    if ((bool2) || (j != 0))
    {
      if (!bool2) {
        if (a(parame, paramRectangle)) {
          a(paramg, parame, true);
        }
      }
      if ((bool2) || ((bool1) && (i != 0))) {
        a(paramg, parame, false);
      }
    }
    ld localld = paramg.w(parame);
    if (((bool2) || (k != 0)) && ((bool2) || (localld.x() > 0)))
    {
      int n = 0;
      int i1 = localld.x();
      do
      {
        if (n >= i1) {
          break;
        }
        jg localjg = localld.b(n);
        if (bool1) {
          break label265;
        }
        if (a(localjg, paramRectangle))
        {
          a(paramg, localjg, true);
          if (bool2) {
            continue;
          }
          if (!bool1) {}
        }
        else
        {
          if (bool2) {
            continue;
          }
          if (i != 0) {
            a(paramg, localjg, false);
          }
        }
        n++;
      } while (!bool1);
    }
    if ((!bool2) && (m != 0)) {
      label265:
      if ((bool2) || (localld.y() > 0))
      {
        Iterator localIterator = localld.z();
        do
        {
          do
          {
            jd localjd;
            do
            {
              if (!localIterator.hasNext()) {
                break;
              }
              localjd = (jd)localIterator.next();
              if (!bool2) {
                if (a(localjd, paramRectangle)) {
                  a(paramg, localjd, true);
                }
              }
            } while ((!bool2) && ((!bool1) || (i == 0)));
            a(paramg, localjd, false);
          } while (bool2);
        } while (!bool1);
      }
    }
  }
  
  protected void b(g paramg)
  {
    paramg.V();
  }
  
  protected void a(g paramg, e parame, boolean paramBoolean)
  {
    boolean bool = ld.E;
    if (!bool)
    {
      if (paramBoolean)
      {
        if (bool) {
          break label32;
        }
        ke.a(paramg, parame);
      }
    }
    else if (!ld.D) {
      return;
    }
    label32:
    ke.b(paramg, parame);
  }
  
  protected void a(g paramg, eb parameb, boolean paramBoolean)
  {
    paramg.a(parameb, paramBoolean);
  }
  
  protected void a(g paramg, d paramd, boolean paramBoolean)
  {
    paramg.a(paramd, paramBoolean);
  }
  
  protected void a(g paramg, hg paramhg, boolean paramBoolean)
  {
    paramg.a(paramhg, paramBoolean);
  }
  
  protected void a(g paramg, jd paramjd, boolean paramBoolean)
  {
    paramg.a(paramjd, paramBoolean);
  }
  
  protected boolean a(g paramg, eb parameb)
  {
    return paramg.a(parameb);
  }
  
  protected boolean a(g paramg, hg paramhg)
  {
    return paramg.a(paramhg);
  }
  
  protected boolean b(g paramg, d paramd)
  {
    return paramg.v(paramd);
  }
  
  protected boolean b(g paramg, e parame)
  {
    return paramg.y(parame);
  }
  
  protected boolean a(g paramg, jd paramjd)
  {
    return paramg.a(paramjd);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.lf

 * JD-Core Version:    0.7.0.1

 */